package cn.initcap.designpattern.pattern.creational.singleton;

/**
 * @author initcap
 * @date Created in 2024/5/6 14:03.
 */
public class MapRunner implements Runnable {
    @Override
    public void run() {
        LazyDoubleCheckSingleton instance = LazyDoubleCheckSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + "  " + instance);
        try {
            System.out.println(instance.getValue("abc"));
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
